
<?php
foreach ($daftar as $value) {
    echo '<h2>' .  anchor(site_url('agen/detail/'.$value->user_id.'/'),$value->nama_lengkap) . '</h2> email: ' . $value->email . '</br>';
}

?>